/// bedId : 4833939187609600
/// bedNo : "105-2(朝南)"
/// branchId : 6627
/// createdBy : "5"
/// createdDate : "2024-05-30 17:35:22"
/// customerId : 4992212616572928
/// customerName : "测5131"
/// drugId : 2
/// drugName : "和胃整肠丸"
/// id : 2
/// jsonBean : {"all":3,"beforeBed":0,"morning":1,"night":1,"noon":1}
/// minUnit : "2"
/// minUnitName : "粒"
/// placerId : 5
/// placerName : "超级管理员"
/// placerTime : "2024-05-30 17:42:43"
/// planId : 0
/// planTime : "2024-05-30 00:00:00"
/// saasId : 1000
/// specifications : "6g*50粒"
/// status : 2
/// statusName : "已执行"
/// stockId : 8
/// updatedBy : "5"
/// updatedDate : "2024-05-30 17:42:43"
/// usageMethod : "{\"noon\": 1, \"night\": 1, \"morning\": 1, \"beforeBed\": 0}"
/// usageQuantity : 1

class PutMedicineListData {
  PutMedicineListData({
      this.bedId, 
      this.bedNo, 
      this.branchId, 
      this.createdBy, 
      this.createdDate, 
      this.customerId, 
      this.customerName, 
      this.drugId, 
      this.drugName, 
      this.id, 
      this.jsonBean, 
      this.minUnit, 
      this.minUnitName, 
      this.placerId, 
      this.placerName, 
      this.placerTime, 
      this.planId, 
      this.planTime, 
      this.saasId, 
      this.specifications, 
      this.status, 
      this.statusName, 
      this.stockId, 
      this.updatedBy, 
      this.updatedDate, 
      this.usageMethod, 
      this.usageQuantity,
  this.usageFrequency,
  this.verifierName,
  this.verifierTime,this.usageType});

  PutMedicineListData.fromJson(dynamic json) {
    bedId = json['bedId'];
    bedNo = json['bedNo'];
    branchId = json['branchId'];
    createdBy = json['createdBy'];
    createdDate = json['createdDate'];
    customerId = json['customerId'];
    customerName = json['customerName'];
    drugId = json['drugId'];
    drugName = json['drugName'];
    id = json['id'];
    jsonBean = json['jsonBean'] != null ? JsonBean.fromJson(json['jsonBean']) : null;
    minUnit = json['minUnit'];
    minUnitName = json['minUnitName'];
    placerId = json['placerId'];
    placerName = json['placerName'];
    placerTime = json['placerTime'];
    planId = json['planId'];
    planTime = json['planTime'];
    saasId = json['saasId'];
    specifications = json['specifications'];
    status = json['status'];
    statusName = json['statusName'];
    stockId = json['stockId'];
    updatedBy = json['updatedBy'];
    updatedDate = json['updatedDate'];
    usageMethod = json['usageMethod'];
    usageQuantity = json['usageQuantity'];
    usageFrequency = json['usageFrequency'];
    verifierName = json['verifierName'];
    verifierTime = json['verifierTime'];
    usageType = json['usageType'];
  }
  num? bedId;
  String? bedNo;
  num? branchId;
  String? createdBy;
  String? createdDate;
  num? customerId;
  String? customerName;
  num? drugId;
  String? drugName;
  num? id;
  JsonBean? jsonBean;
  String? minUnit;
  String? minUnitName;
  num? placerId;
  String? placerName;
  String? placerTime;
  num? planId;
  String? planTime;
  num? saasId;
  String? specifications;
  num? status;
  String? statusName;
  num? stockId;
  String? updatedBy;
  String? updatedDate;
  String? usageMethod;
  num? usageQuantity;
  String? usageFrequency;
  String? verifierName;
  String? verifierTime;
  String? usageType;
PutMedicineListData copyWith({  num? bedId,
  String? bedNo,
  num? branchId,
  String? createdBy,
  String? createdDate,
  num? customerId,
  String? customerName,
  num? drugId,
  String? drugName,
  num? id,
  JsonBean? jsonBean,
  String? minUnit,
  String? minUnitName,
  num? placerId,
  String? placerName,
  String? placerTime,
  num? planId,
  String? planTime,
  num? saasId,
  String? specifications,
  num? status,
  String? statusName,
  num? stockId,
  String? updatedBy,
  String? updatedDate,
  String? usageMethod,
  num? usageQuantity,
}) => PutMedicineListData(  bedId: bedId ?? this.bedId,
  bedNo: bedNo ?? this.bedNo,
  branchId: branchId ?? this.branchId,
  createdBy: createdBy ?? this.createdBy,
  createdDate: createdDate ?? this.createdDate,
  customerId: customerId ?? this.customerId,
  customerName: customerName ?? this.customerName,
  drugId: drugId ?? this.drugId,
  drugName: drugName ?? this.drugName,
  id: id ?? this.id,
  jsonBean: jsonBean ?? this.jsonBean,
  minUnit: minUnit ?? this.minUnit,
  minUnitName: minUnitName ?? this.minUnitName,
  placerId: placerId ?? this.placerId,
  placerName: placerName ?? this.placerName,
  placerTime: placerTime ?? this.placerTime,
  planId: planId ?? this.planId,
  planTime: planTime ?? this.planTime,
  saasId: saasId ?? this.saasId,
  specifications: specifications ?? this.specifications,
  status: status ?? this.status,
  statusName: statusName ?? this.statusName,
  stockId: stockId ?? this.stockId,
  updatedBy: updatedBy ?? this.updatedBy,
  updatedDate: updatedDate ?? this.updatedDate,
  usageMethod: usageMethod ?? this.usageMethod,
  usageQuantity: usageQuantity ?? this.usageQuantity,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['bedId'] = bedId;
    map['bedNo'] = bedNo;
    map['branchId'] = branchId;
    map['createdBy'] = createdBy;
    map['createdDate'] = createdDate;
    map['customerId'] = customerId;
    map['customerName'] = customerName;
    map['drugId'] = drugId;
    map['drugName'] = drugName;
    map['id'] = id;
    if (jsonBean != null) {
      map['jsonBean'] = jsonBean?.toJson();
    }
    map['minUnit'] = minUnit;
    map['minUnitName'] = minUnitName;
    map['placerId'] = placerId;
    map['placerName'] = placerName;
    map['placerTime'] = placerTime;
    map['planId'] = planId;
    map['planTime'] = planTime;
    map['saasId'] = saasId;
    map['specifications'] = specifications;
    map['status'] = status;
    map['statusName'] = statusName;
    map['stockId'] = stockId;
    map['updatedBy'] = updatedBy;
    map['updatedDate'] = updatedDate;
    map['usageMethod'] = usageMethod;
    map['usageQuantity'] = usageQuantity;
    return map;
  }

}

/// all : 3
/// beforeBed : 0
/// morning : 1
/// night : 1
/// noon : 1

class JsonBean {
  JsonBean({
      this.all, 
      this.beforeBed, 
      this.morning, 
      this.night, 
      this.noon,});

  JsonBean.fromJson(dynamic json) {
    all = json['all'];
    beforeBed = json['beforeBed'];
    morning = json['morning'];
    night = json['night'];
    noon = json['noon'];
  }
  num? all;
  num? beforeBed;
  num? morning;
  num? night;
  num? noon;
JsonBean copyWith({  num? all,
  num? beforeBed,
  num? morning,
  num? night,
  num? noon,
}) => JsonBean(  all: all ?? this.all,
  beforeBed: beforeBed ?? this.beforeBed,
  morning: morning ?? this.morning,
  night: night ?? this.night,
  noon: noon ?? this.noon,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['all'] = all;
    map['beforeBed'] = beforeBed;
    map['morning'] = morning;
    map['night'] = night;
    map['noon'] = noon;
    return map;
  }

}